gjs has provided that as a more idiomatic replacement for a while.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/600
}
set icon(icon) {
- Object.assign(this._icon, { gicon: icon, visible: icon != null });
+ this._icon.set({
+ gicon: icon,
+ visible: icon != null
+ });
this.notify('icon');
}
}
_setLabel(label, prop, value) {
- Object.assign(label, { text: value || '', visible: value != null });
+ label.set({
+ text: value || '',
+ visible: value != null
+ });
this.notify(prop);
}